package com.cs.study.homework._0305;

import java.io.*;

public class Demo {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(
                new InputStreamReader(
                        new FileInputStream("E:\\a\\a.txt")));
        String s1 = in.readLine();
        StringBuffer s11 = new StringBuffer(s1);
        //System.out.println(s11.reverse());
        String s2 = in.readLine();
        StringBuffer s22 = new StringBuffer(s2);
        //System.out.println(s22.reverse());

        PrintWriter printWriter = new PrintWriter(new FileWriter("E:\\a\\b.txt"));
        printWriter.println(s11);
        printWriter.println(s22);
        printWriter.close();



    }
}
